<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: DoveXL
  Date: 2018/6/3
  Time: 20:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="_csrf" content="${_csrf.token}"/>
    <meta name="_csrf_header"  content="${_csrf.headerName}"/>
    <title>视频信息</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/plugins/bootstrap/css/font-awesome.css" rel="stylesheet" />
    <!-- Morris Chart Styles-->
    <link href="${pageContext.request.contextPath}/plugins/morris/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- Custom Styles-->
    <link href="${pageContext.request.contextPath}/plugins/bootstrap/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <script src="${pageContext.request.contextPath}/plugins/jquery/jquery-3.2.1.min.js"></script>
    <!-- Bootstrap Js -->
    <script src="${pageContext.request.contextPath}/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/plugins/jquery/jquery.metisMenu.js"></script>
    <!-- Morris Chart Js -->
    <script src="${pageContext.request.contextPath}/plugins/morris/raphael-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/plugins/morris/morris.js"></script>

    <!-- Custom Js -->
    <script src="${pageContext.request.contextPath}/plugins/jquery/custom-scripts.js"></script>
</head>
<body>
<nav class="navbar navbar-default top-navbar" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="${pageContext.request.contextPath}/index"><i class="fa fa-gear"></i> <strong>国家安全教育平台</strong></a>
    </div>
    <ul class="nav navbar-top-links navbar-right">
        <!-- /.dropdown -->
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user">
                <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
                </li>
                <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                </li>
                <li class="divider"></li>
                <li><a href="#"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                </li>
            </ul>
            <!-- /.dropdown-user -->
        </li>
        <!-- /.dropdown -->
    </ul>
</nav>
<!--/. NAV TOP  -->
<nav class="navbar-default navbar-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav" id="main-menu">
            <li>
                <a href="${pageContext.request.contextPath}/admin/IndexManagement"><i class="fa fa-sitemap" ></i>后台首页<span class="fa arrow"></span></a>
            </li>
            <li>
                <a href="#"><i class="fa fa-sitemap" ></i>用户管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/UserManagement">用户信息</a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/AddNewUser">新建用户</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-sitemap" ></i>类别管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/CategoryManagement">主类别管理</a>
                    </li>
                        <sec:authorize access="hasRole('ROLE_SUPERADMIN')">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/AddCategoryManagement">新增主类别</a>
                    </li>
                        </sec:authorize>
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/SubCategoryManagement">子类别管理</a>
                    </li>
                        <sec:authorize access="hasRole('ROLE_SUPERADMIN')">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/AddSubCategoryManagement">新增子类别</a>
                    </li>
                        </sec:authorize>
                </ul>
            </li>
            <li>
                <a href=""><i class="fa fa-sitemap"></i>视频管理<span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/VideoManagement">视频列表</a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/VideoUpload">上传视频</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#"><i class="fa fa-sitemap" ></i>角色管理<span class="fa arrow"></span></a>
               <sec:authorize access="hasRole('ROLE_SUPERADMIN')">
                <ul class="nav nav-second-level">
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/RoleManagement">角色信息</a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/admin/RoleUserManagement">用户权限</a>
                    </li>
                </ul>
               </sec:authorize>
            </li>
        </ul>
    </div>
</nav>
<div id="page-wrapper">
    <div id="page-inner">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div style="padding-left:20px;padding-top: 3%;padding-bottom: 10%;align-self: center">
                    <h1 class="page-header">
                        欢迎登陆 <small>后台管理系统</small>
                    </h1>
                    <br>
                    <footer><p style="font-size: larger">版权所有：华东理工大学，如有问题，请及时联系我们</p></footer>

                    <br>
                    <h4 style="font-family: 黑体" id="Message">请点击左侧菜单开始开始操作</h4>
                </div>

            </div>
        </div>
    </div>
</div>
</body>
</html>
